package com.itheima.d5_datastream;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class d5_OutputStreamTest1 {
    public static void main(String[] args) {

        try ( DataOutputStream dis = new DataOutputStream(new FileOutputStream("D:\\Java\\JavaEE_learn\\IO_app2\\src\\itheima10out.txt"))){

            dis.writeInt(97);
            dis.writeDouble(97.5);
            dis.writeBoolean(true);
            dis.writeUTF("真的很好！！");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
